import QtQuick 2.7
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.1

import iproapps.besttodolist 1.0

Item {
    id: rootId
    property alias listView: listView

    property int colorPickerLeftMargin: 50
    property alias buttonNewTask: buttonNewTask
    property alias newTaskBottom: newTaskBottom

    ColumnLayout {
        id: columnLayout
        anchors.fill: parent
        spacing: 30

        ListView {
            id: listView
            Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
            Layout.fillWidth: true
            Layout.fillHeight: true
            boundsBehavior: Flickable.StopAtBounds
            highlightRangeMode: ListView.NoHighlightRange
        }

        RoundButton {
            id: buttonNewTask
            text: "+"
            flat: false
            Layout.rightMargin: 10
            Layout.bottomMargin: 10
            Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
        }

        NewTaskComponent {
            id: newTaskBottom
            visible: false
            Layout.fillHeight: false
            Layout.fillWidth: true
        }
    }
}

/*##^##
Designer {
    D{i:0;autoSize:true;height:480;width:640}
}
##^##*/

